package com.lkei.service.impl;

import com.lkei.dao.ResultDAO;
import com.lkei.entity.Result;
import com.lkei.service.ResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("resultService")
public class ResultServiceImpl implements ResultService {

    @Autowired
    private ResultDAO resultDAO;

    @Override
    public void addResult(Result result) {
        resultDAO.addResult(result);
    }

    @Override
    public Result findResult(Long StudentID, Integer MessageID) {
        return resultDAO.findResult(StudentID,MessageID);
    }

    @Override
    public Integer finishNumber(Integer MessageID) {
        return resultDAO.finishNumber(MessageID);
    }
}
